home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Hacks / Hacks ’96 / PredatorPrey / CWProj.sit / C14 Calculator.µ.Rsrc.rsrc / TEXT_1034_Arithmetic Calculations with Constants.txt < prev    next >
Encoding:
Text File  |  1994-12-07  |  2.0 KB  |  51 lines

  1. - ARITHMETIC CALCS WITH CONST  
  2. ARITHMETIC CALCULATIONS WITH CONSTANTS
  3.  
  4. There are three ways (without using a storage register) to manipulate the memory stack to perform repeated calculations with a constant:
  5.  
  6.  1.   Use the LAST X register.
  7.  2.   Load the stack with a constant and operate upon different numbers.  (Clear the X-register every time you want to change the number operated upon.)
  8.  
  9.  3.  Load the stack with a constant and operate upon an accumulating number.  (Do not change the number in the X-register.)
  10.  
  11. LAST X. Use your constant in the X-register (that is, enter it second) so that it always will be saved in the LAST X register. Pressing g LSTx will retrieve the constant and place it into the X-register(the display). This can be done repeatedly.
  12.  
  13. Example: Two close stellar neighbors of Earth are Rigil Centaurus(4.3 light-years away) and Sirius(8.7 light-years away). Use the speed of light, c (3.0 * 10^8 meters/second, or 9.5 * 10^15 meters/year), to figure the distances to these stars in meters. (The stack diagrams show only one decimal place.)
  14.  
  15.   T   t        z        y        y
  16.   Z   z        y        x        x
  17.   Y   y        x        4.3     4.3
  18.   X   x        4.3      4.3     9.5 15
  19.  
  20. Keys:   4.3    ENTER    9.5 EEX  15
  21. LAST X:
  22.             /         /         /         /
  23.  
  24.   T   y        y        y        x
  25.   Z   x        y        x       4.1 16
  26.   Y   4.3      x        4.1 16  8.7
  27.   X   9.5 15  4.1 16    8.7     9.5 15
  28.  
  29. Keys:    *        8.7    g LSTx
  30. LAST X:
  31.             /       9.5 15  9.5 15  9.5 15
  32.  
  33.   T  x          x
  34.   Z  4.1 16     x
  35.   Y  8.7       4.1 16 <---------|
  36.   X  9.5 15    8.3 16 <---|     |
  37.                           |     |
  38. Keys:     *               |     |
  39. LAST X:                   |     |
  40.      9.5 15   9.5 15      |     |
  41.                           |     |
  42. (Sirius is 8.3*10^16      |     |
  43.           meters away)>>--|     |
  44.                                 |
  45. (R. Centaurus is 4.1*10^16      |
  46.           meters away)>>--------|
  47.  
  48.  
  49. See "LOADING THE STACK WITH A CONSTANT" this help
  50.  
  51.